import http from "@/utils/request"

export default {
	store: {
		method: `admin.adminMenu.store`,
		name: "保存菜单",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	delete: {
		method: `admin.adminMenu.delete`,
		name: "删除菜单",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	draggingChange: {
		method: `admin.adminMenu.draggingChange`,
		name: "拖动菜单",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	list: {
		method: `admin.adminMenu.index`,
		name: "菜单列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	power: {
		method: `admin.adminMenu.power`,
		name: "菜单列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	}
}
